﻿using System;

class WithinCircleOutOfRectangle
{
    static void Main(string[] args)
    {
        Console.WriteLine("Coordinate X:");
        double CoordinateX = double.Parse(Console.ReadLine());
        Console.WriteLine("Coordinate Y:");
        double CoordinateY = double.Parse(Console.ReadLine());
        double AbsoluteX = Math.Abs(CoordinateX - 1);
        double AbsoluteY = Math.Abs(CoordinateY - 1);
        bool IsInCircle = ((AbsoluteX * AbsoluteX) + (AbsoluteY * AbsoluteY) <= 3);
        bool OutOfRectangle = ((CoordinateX > 5 || CoordinateX < -1) || (CoordinateY > 1 || CoordinateY < -1));
        if (IsInCircle && OutOfRectangle)
        {
            Console.WriteLine("Yes, the point is in the circle and out of the rectangle!");
        }
        else
        {
            Console.WriteLine("No, the point is not in the circle and out of the rectangle in the same time!");
        }

    }
}

